using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Ricciolo.PaperBoy.UI
{
    /// <summary>
    /// Interaction logic for NavigationErrorPage.xaml
    /// </summary>
    public partial class NavigationErrorPage : System.Windows.Controls.Page
    {
        private readonly Uri _uri;
        private Exception _exception;

        public NavigationErrorPage(Uri uri, Exception exception)
        {
            _uri = uri;
            _exception = exception;
            InitializeComponent();

            this.Title = exception.Message;
        }

        public Uri Uri
        {
            get { return _uri; }
        }

        public Exception Exception
        {
            get { return _exception; }
        }
    }
}